package com.wzdigit.wms.hm.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wzdigit.framework.orm.mybatis.MyBatisRepository;
import com.wzdigit.wms.hm.domain.AsnHeader;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

/**
 * <p>
 * 收货通知单信息 Mapper 接口
 * </p>
 *
 * @author 
 * @since 2021-01-12
 */
@MyBatisRepository
public interface AsnHeaderMapper extends BaseMapper<AsnHeader> {


    void updateStatusById(@Param("asnHeaderId") Integer asnHeaderId,
                          @Param("status") int status,
                          @Param("userName") String userName);

    int updateStatusBySsnNoAndAsnTypeAndStatus(
            @Param("status") Integer status, @Param("asnNo") String asnNo,
            @Param("asnType") String asnType, @Param("byStatus") Integer byStatus);

    AsnHeader searchRecieveHeader(@Param("mfgLine") String mfgLine,@Param("skuId") Integer skuId,
                                  @Param("prdWo") String prdWo,@Param("closeTime") Date closeTime,
                                  @Param("status") Integer status,@Param("asnType") String asnType);
}
